<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTTP 状态码</title>
    <link rel="stylesheet" href="./flex.css">
    <!-- 外联样式 -->
    <style>
        /* 嵌入样式  */
    </style>
</head>

<body>
    <div class="page">
        <div class="page__hd">
            <div class="page__title">Flex</div>
            <div class="page__desc">Flex布局</div>
        </div>
        <div class="page__bd page__bd_spacing">
            <div class="weui-flex">
                <div class="weui-flex__item">
                    <div class="placeholder">weui</div>
                </div>
            </div>
            <div class="weui-flex">
                <div class="weui-flex__item">
                    <div class="placeholder">weui</div>
                </div>
                <div class="weui-flex__item">
                    <div class="placeholder">weui</div>
                </div>
            </div>
            <div class="weui-flex">
                <div class="weui-flex__item">
                    <div class="placeholder">weui</div>
                </div>
                <div class="weui-flex__item">
                    <div class="placeholder">weui</div>
                </div>
                <div class="weui-flex__item">
                    <div class="placeholder">weui</div>
                </div>
            </div>
        </div>
    </div>

    </div>
    <div class="page__ft">
        <a href="javascript:home()">
            <!-- img 标签 也会发出HTTP请求 -->
            <img src="" alt="">
        </a>
        <!-- style="color:white" 行内样式 不要这么写 优先级更高 比较乱 不方便集中管理样式-->
    </div>
    <!-- weui 项目前缀，弹性布局组件 新一轮的BEM -->


    </div>
    <script>
        // typeof 不靠谱
        // js 函数是一等对象
        function home() {
            // 通过 js 跳转到 /home 页面
            // window 全局对象
            // location 属于 BOM DOM 对象
            window.location.href = '/home';
        }
        console.log(typeof home);//object
    </script>
</body>

</html>